const { StaticDomain } = Env

export default function cdn(path = '', cdnurl = StaticDomain) {
  if (!path) return ''

  if (path.indexOf('http') > -1) return path

  return `${cdnurl}${path}`
}
